class CreateAttributes < ActiveRecord::Migration
  def self.up
    create_table :attributes do |t|
      t.integer :concept_id
      t.string :name
      t.column :value, :string, :limit => 1024
      
      t.timestamps
    end

    add_index(:attributes, :concept_id)
    add_index(:attributes, :name)
    add_index(:attributes, :value)
  end

  def self.down
    drop_table :attributes
  end
end
